﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.IO.Compression;
using Telerik.Web.UI;
using Core.Security.Business;
using Core.Common.Session;
using Core.Message;
using Core.ExceptionHandling;
using Core.Security.CoreMembership;
using Core.NTier.UserInterface;
using System.Collections;
using Core.Controls.Message;
using Core.Message.Entities;
using Core.Configs;
using System.Web.UI.HtmlControls;

namespace vHCS.K2App
{
    public partial class Site1 : System.Web.UI.MasterPage
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }
        /// <summary>
        /// Sự kiện khởi tạo trang
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void Page_Init(object sender, EventArgs e)
        {
            try
            {
                //Set skin cho tất cả Telerik Control trong trang
                //Đưa tất cả control telerik về 1 style, 
                //thuận tiện cho quá trình style cho trang
                //this.eplStyleManeger.Skin = _TELERIK_SKIN;
            }
            catch (Exception ex)
            {
                AlertMessage mess = UserInterfaceExceptionHandler.HandleExcetion(ex);
                MessageBox.Show(mess);
            }
        }
        private void SetupQsfResourcesLinks()
        {
            QsfScriptsLink.Attributes["href"] = Page.ResolveUrl(QsfScriptsLink.Attributes["href"]);

            //QsfStyleSheetsLink.Attributes["href"] = Page.ResolveUrl(QsfStyleSheetsLink.Attributes["href"]);

            // Add a script tag pointing to the scripts location.
            HtmlGenericControl script = new HtmlGenericControl("script");
            script.Attributes["src"] = QsfScriptsLink.Attributes["href"];
            script.Attributes["type"] = "text/javascript";

            ScriptTagPlaceHolder.Controls.Add(script);
            QsfScriptsLink.Visible = false;

            //QsfScriptsLink1.Attributes["href"] = Page.ResolveUrl(QsfScriptsLink1.Attributes["href"]);
            //HtmlGenericControl script1 = new HtmlGenericControl("script");
            //script1.Attributes["src"] = QsfScriptsLink1.Attributes["href"];
            //script1.Attributes["type"] = "text/javascript";
            //ScriptTagPlaceHolder1.Controls.Add(script1);
            //QsfScriptsLink1.Visible = false;
            // Set the ID to an empty string so that id does not render.
            //QsfStyleSheetsLink.ID = String.Empty;

            // Hide the <link> tag as it cannot load the scripts.


        }
    }
}